package sample9;

public class Worker extends AbstractPerson implements Propeties {

	// フィールド
	String company;

	// コンストラクタ
	public Worker(int age, String name, String company) {
		super(age, name);
		this.company = company;

	}

	@Override
	public void toPropeties() {
		System.out.println("class=" + this.getClass().getSimpleName());
		System.out.println("age=" + age);
		System.out.println("name=" + name);
		System.out.println("company=" + company);

	}
}
